Default minimum number of receive buffers queued by netfront is now 64, not 8.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 24 Feb 2006 16:50:20 +0000 (17:50 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 24 Feb 2006 16:50:20 +0000 (17:50 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c

index 10165268c6cd1bb7365e8b0dc02e904fb6d773dc..8f1c871e574894e3ba32c4bf0d8701232588477a 100644 (file)
@@ -114,6 +114,7 @@ struct netfront_info
 
        /* Receive-ring batched refills. */
 #define RX_MIN_TARGET 8
+#define RX_DFL_MIN_TARGET 64
 #define RX_MAX_TARGET NET_RX_RING_SIZE
        int rx_min_target, rx_max_target, rx_target;
        struct sk_buff_head rx_batch;
@@ -1102,8 +1103,8 @@ static int create_netdev(int handle, struct xenbus_device *dev,
        spin_lock_init(&np->rx_lock);
 
        skb_queue_head_init(&np->rx_batch);
-       np->rx_target     = RX_MIN_TARGET;
-       np->rx_min_target = RX_MIN_TARGET;
+       np->rx_target     = RX_DFL_MIN_TARGET;
+       np->rx_min_target = RX_DFL_MIN_TARGET;
        np->rx_max_target = RX_MAX_TARGET;
 
        init_timer(&np->rx_refill_timer);